package com.lock.test.service;

import java.util.concurrent.TimeUnit;

/**
 * @author: alexxiao
 * @date: 2023/3/8 11:41
 * <p>
 */
public interface CacheService {
    void setKey(String key, String value);

    void setKey(String key, String value, long timeOut, TimeUnit unit);

    String getValue(String key);

    Boolean lock(String key);

    Boolean lock(String key, long timeOut, TimeUnit unit);
}
